package com.xrkj.b2c.service.impl.sys;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xrkj.b2c.dao.sys.SysCustomerMapper;
import com.xrkj.b2c.model.sys.SysCustomer;
import com.xrkj.b2c.service.sys.SysCustomerService;

/**
 * 
 * <B>系统名称：</B><BR>
 * <B>模块名称：</B><BR>
 * <B>中文类名：</B>客户管理<BR>
 * <B>概要说明：</B><BR>
 * 
 * @author knn
 * @since 2018年7月10日
 */
@Service
public class SysCustomerServiceImpl implements SysCustomerService {
	
	@Autowired
	private SysCustomerMapper customerDao;

	@Override
	public Integer findCustomerTotal(Map<String, Object> paramter) {
		// TODO Auto-generated method stub
		return customerDao.findCustomerTotal(paramter);
	}

	@Override
	public List<SysCustomer> findCustomerList(Map<String, Object> paramter) {
		// TODO Auto-generated method stub
		return customerDao.findCustomerList(paramter);
	}

	@Override
	public int insert(SysCustomer customer) {
		// TODO Auto-generated method stub
		return customerDao.insert(customer);
	}

	@Override
	public SysCustomer selectCustomerById(String parameter) {
		// TODO Auto-generated method stub
		return customerDao.selectByPrimaryKey(parameter);
	}

	@Override
	public int update(SysCustomer customer) {
		// TODO Auto-generated method stub
		return customerDao.updateByPrimaryKey(customer);
	}

	@Override
	public int deleteByPrimaryKey(String id) {
		// TODO Auto-generated method stub
		return customerDao.deleteByPrimaryKey(id);
	}

}
